﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

@{
    GameSchool.Models.Person loggedOnPerson;
    loggedOnPerson = GameSchool.Extra.UserInfo.GetLoggedOnPerson();
    bool isAdmin = (loggedOnPerson != null && loggedOnPerson.IsAdmin);
    bool isTeacher = (loggedOnPerson != null && loggedOnPerson.IsTeacher);
    bool isStudent = (loggedOnPerson != null && loggedOnPerson.IsStudent);
   }
<html>
<head runat="server">
    <meta charset="utf-8" />
    
	<title> @ViewBag.Title</title>

    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/Common.js")" type="text/javascript"></script>
	
    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
  
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.core.css")" rel="stylesheet" type="text/css" />  
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.theme.css")" rel="stylesheet" type="text/css" />  
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.base.css")" rel="stylesheet" type="text/css" />  

</head>



<body>

     
               

       <div id="maincontainer">

            <div id="header">
                <div class="innertube">
                    <img src="../../Content/themes/GameSchool_header.jpg" alt="GameSchool logo" height="80"/>
                    <h1>GameSchool</h1>
                    <div id="logindisplay">
                        @Html.Partial("_LogOnPartial")
                    </div>

                </div>
            </div>
        

        <div id="contentwrapper">

         <div id="main">
				<div class="innertube">
                  <section id="maincontent">
            @RenderBody()
            </section>
        </div> <!-- end content -->
			</div> <!-- end outer2 -->
            </div>

                        
        <div id="leftmenu">
        
            <div class="innertube">
                <dl id="leftmenubar">
           


					<dd>@Html.ActionLink("Heim", "Index", "Home")</dd> 
                    @if (isAdmin)
					{
						<dd>@Html.ActionLink("Skrá notanda", "Register", "Account")</dd>
                    }                    
					<dd>@Html.ActionLink("Öll námskeið", "CourseIndex", "Course")</dd>
					@if (isTeacher || isAdmin)
                    {
						<dd>@Html.ActionLink("Notendur", "Index", "Person")</dd>
                    }
                    @if (isTeacher || isAdmin)
                       {
                        <dd>@Html.ActionLink("Skrá fyrirlestur", "CreateVideo", "Assignment")</dd>					
                       }   
                    <dd>@Html.ActionLink("Tilkynningar", "IndexNotification", "Notification")</dd>                               
                    <dd><a href="http://www.ru.is/namid/kennsluskra/" target="_blank">Kennsluskrá</a></dd>              
                    <dd><a href="http://www.ru.is/almanak/" target="_blank">Almanak</a></dd>
                    <dd>@Html.ActionLink("Próftafla", "Proftafla", "Home")</dd>   
                    <dd><a href="https://mail.ru.is/owa/auth/logon.aspx" target="_blank">Vefpóstur</a></dd>
                    <dd>@Html.ActionLink("Hjálp", "Hjalp", "Home")</dd>
                    <dd>@Html.ActionLink("Um GameSchool", "Um", "Home")</dd>                   

                </dl>
            </div>         
        </div>

       
 
	   	<div class="rightmenu">
			<div class="innertube">
				<div class="accordion">
					@{
						Html.RenderAction("SidebarCourses", "Course");
                    }
				</div>
			</div>
		</div>
	   
       
   

	   	<div id ="footer">
       
            <p>GameSchool  |  Leikjagata 15  |  Leikjalandi</p>
        </div>
		
        </div>
</body>
</html>
